Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache orbitals when constructing basis set #17

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

hatemhelal
Copy link
Member

This diff introduces a cached function for looking up the basis set parameters and converting those into mess.Orbital instances. The cached object is centered on the origin so the last step is to move the basis functions to the correct atom center.

This appears to save some time in the benchmark added:

Name (time in ms)                           Min                Max               Mean            StdDev             Median               IQR            Outliers      OPS            Rounds  Iterations
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_construct_basis (NOW)              10.6405 (1.0)      11.6807 (1.0)      11.0971 (1.0)      0.4134 (1.0)      11.1947 (1.0)      0.5950 (1.03)          2;0  90.1137 (1.0)           5           1
test_construct_basis (0001_a11be28)     23.0007 (2.16)     24.9462 (2.14)     23.5519 (2.12)     0.7894 (1.91)     23.2954 (2.08)     0.5754 (1.0)           1;1  42.4594 (0.47)          5           1
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Still testing how this impacts the batching implementation.

@hatemhelal hatemhelal requested a review from FNTwin September 30, 2024 15:51
@hatemhelal hatemhelal self-assigned this Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant